*** Earning Iowa: Local Newspapers and the Invisible Primary ***
*** SSQ Replication Data ***
*** Joshua P. Darr, Louisiana State University ***



*** TABLE 1: Story Counts ***

use "Candidate stories.dta", clear

sort paper
by paper: gen stories = _N

by paper: keep if _n==1

keep paper stories


*** TABLE 2: Distribution of press releases among strategic categories (descriptive) ***

use "RNR and original.dta", clear

* Column 1: Overall *
gen pr_type = 1 if informative==1
replace pr_type = 2 if substantive==1
replace pr_type = 3 if poscompetitive==1
replace pr_type = 4 if negcompetitive==1

tab pr_type

* Column 2: Frontrunners *
use "RNR and original.dta", clear

keep if frontrunner==1
gen pr_type = 1 if informative==1
replace pr_type = 2 if substantive==1
replace pr_type = 3 if poscompetitive==1
replace pr_type = 4 if negcompetitive==1

tab pr_type

* Column 2: Challengers *
use "RNR and original.dta", clear

keep if frontrunner==0
gen pr_type = 1 if informative==1
replace pr_type = 2 if substantive==1
replace pr_type = 3 if poscompetitive==1
replace pr_type = 4 if negcompetitive==1

tab pr_type



*** TABLE 3: Logit results, "norm-based model of message transition" ***

use "RNR and original.dta", clear

gen log_length = log(length)

logit hitcount ap_hit frontrunner substantive poscompetitive negcompetitive quote ia_focus proxevent days2ia log_length
outreg2 using "SSQ_RNR_Logit_table.doc", ctitle(Logit coeff.) se bdec(3) sdec(3)

logit tier1_any ap_hit frontrunner substantive poscompetitive negcompetitive quote ia_focus proxevent days2ia log_length
outreg2 using "SSQ_RNR_Logit_table.doc", ctitle(Logit coeff.) se bdec(3) sdec(3)

logit tier0_any ap_hit frontrunner substantive poscompetitive negcompetitive quote ia_focus proxevent days2ia log_length
outreg2 using "SSQ_RNR_Logit_table.doc", ctitle(Logit coeff.) se bdec(3) sdec(3)




*** FIGURE 2: Predicted probabilities, candidate type/newspaper size ***

use "RNR and original.dta", clear

gen log_length = log(length)

logit hitcount ap_hit frontrunner informative substantive poscompetitive negcompetitive quote ia_focus proxevent days2ia log_length
margins, at(ap_hit=1 frontrunner=1) atmeans
margins, at(ap_hit=0 frontrunner=1) atmeans
margins, at(ap_hit=1 frontrunner=0) atmeans
margins, at(ap_hit=0 frontrunner=0) atmeans


logit tier1_any ap_hit frontrunner informative substantive poscompetitive negcompetitive quote ia_focus proxevent days2ia log_length
margins, at(ap_hit=1 frontrunner=1) atmeans
margins, at(ap_hit=0 frontrunner=1) atmeans
margins, at(ap_hit=1 frontrunner=0) atmeans
margins, at(ap_hit=0 frontrunner=0) atmeans


logit tier0_any ap_hit frontrunner informative substantive poscompetitive negcompetitive quote ia_focus proxevent days2ia log_length
margins, at(ap_hit=1 frontrunner=1) atmeans
margins, at(ap_hit=0 frontrunner=1) atmeans
margins, at(ap_hit=1 frontrunner=0) atmeans
margins, at(ap_hit=0 frontrunner=0) atmeans
